package com.wdb.user.fallback;

import com.wdb.common.configurer.authority.AuthorityResponse;
import com.wdb.domain.user.entity.UserInfo;
import com.wdb.domain.user.entity.UserInfoPin;
import com.wdb.domain.user.request.UserPinLoginRequest;
import com.wdb.user.service.UserInfoService;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class UserInfoPinFallback implements UserInfoService {

    @Override
    public Map<String, Object> findUserInfo(Long id) {
        HashMap<String, Object> hashMap = new HashMap<>();
        hashMap.put("username","王八羔子");
        return hashMap;
    }

    @Override
    public Map<String, Object> saveUserInfo(UserInfo userInfo) {
        throw new RuntimeException();
    }

    @Override
    public AuthorityResponse login(UserPinLoginRequest request) {
        throw new RuntimeException();
    }

    @Override
    public UserInfoPin register(UserPinLoginRequest request) {
        throw new RuntimeException();
    }
}
